package com.bdqn.mapper;

import com.bdqn.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    List<SysRole> getAll();

    int add(@Param("code")String code,@Param("roleName")String roleName);
    int getCode(@Param("code")String code);

    int del(@Param("roleid") int role);


    SysRole getByID(@Param("roleid")String roleid);
    int upd(@Param("id") Integer id,@Param("code")String code,@Param("roleName") String roleName);


}
